import $axios from '@/utils/axios';

export function queryBannerList() {
  //return $axios.get('/shop/banner');
  return $axios.get('/findAllSlideshow');
}

export function queryCustomsList() {
  return $axios.get('/shop/customs');
}

export function queryGoodsList() {
  const data = {'keyword':'','categoryCode':[],'commodityType':'1'};
  //return $axios.get('/shop/goodslist');
  return $axios.post('/decorative/list', data);
}

export function queryQuickNavList() {
  //return $axios.get('/shop/quicknav');
  return $axios.get('/decorative/category/list');
}

export function queryGoodsInfo(id: string) {
  //return $axios.post(`/shop/goods/${id}`);
  return $axios.get(`/decorative/${id}`);
}
